import { DEFAULT_LAYOUT } from "../base"
import { AppRouteRecordRaw } from "../types"

const MANAGEMENT: AppRouteRecordRaw = {
  path: "/management",
  name: "management",
  component: DEFAULT_LAYOUT,
  meta: {
    locale: "menu.management",
    icon: "icon-settings",
    requiresAuth: true,
    order: 8
  },
  children: [
    {
      path: "enterprise",
      name: "Enterprise",
      component: () => import("@/views/management/enterprise/index.vue"),
      meta: {
        locale: "企业",
        requiresAuth: true,
        roles: ["*"]
      }
    },
    {
      path: "enterpriseDetail",
      name: "EnterpriseDetail",
      component: () => import("@/views/management/enterpriseDetail/index.vue"),
      meta: {
        locale: "企业详情",
        requiresAuth: true,
        roles: ["*"]
      }
    },
    {
      path: "support",
      name: "Support",
      component: () => import("@/views/management/support/index.vue"),
      meta: {
        locale: "支撑单位",
        requiresAuth: true,
        roles: ["*"]
      }
    }
  ]
}

export default MANAGEMENT
